STORMS VISUALIZATION
STORMS VISUALIZATION#
data = load_dac_hindcast().sel(time=slice('2018-01-29','2018-02-02'))\
.to_dataframe().reset_index()
data.time = data.time.astype(str)
px.set_mapbox_access_token(
'pk.eyJ1IjoianRhdXNpYSIsImEiOiJja2g0bzdxYm8wMHJrMnJsc2FkY3lqd3BxIn0.FxXNhnzy6TqYMUj4U4gjBg'
)
fig = px.scatter_mapbox(
data,lon='longitude',lat='latitude',color='dac',animation_frame='time',zoom=2.4,
color_continuous_scale=['purple','darkblue','blue','red','yellow','white']
)
fig.update_layout(mapbox_style="dark")
fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})
fig.show()
loading the DAC hindcast data...